#ifndef GVECTOR3_H
#define GVECTOR3_H
#include <iostream>
#include <cmath>
using namespace std;
class GVector3
{
public:
    float x;
    float y;
    float z;
    GVector3();
    ~GVector3();
    GVector3(float posX, float posY, float posZ);
    void getInfo();
    GVector3 operator+(GVector3 v);
    GVector3 operator-(GVector3 v);
    GVector3 operator*(float n);
    GVector3 operator/(float n);
    float dotMul(GVector3 v2) const;
    GVector3 crossMul(GVector3 v2);
    GVector3 abs();
    float max();
    float min();
    float getLength();
    GVector3 normalize();
    float getDist(GVector3 v);
    GVector3 zero();
    void show();
};
#endif // GVECTOR3_H
